//
//  Tree.m
//  OC作业
//
//  Created by dllo on 15/12/1.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "Tree.h"

@implementation Tree

//- (void)setName:(NSString *)name{
//    _name= name;
//}
//- (void)setNumber:(NSInteger)number{
//    _number = number;
//}
//- (NSString *)name{
//    return _name;
//}
//- (NSInteger)number{
//    return _number;
//}
//


- (instancetype)initWithName:(NSString *)name
                      number:(NSInteger)number{
    
    self = [super init];
    if (self) {
        _name = name;
        _number = number;
    }
    return self;
}

+ (instancetype)treeWithName:(NSString *)name number:(NSInteger)number{
    Tree *tree = [[Tree alloc] initWithName:name number:number];
    return tree;
}




@end
